﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Alimentador.RightGroup.Results
{
    /// <summary>
    /// Interaction logic for ResultItem.xaml
    /// </summary>
    public partial class ResultItem : UserControl
    {
        private List<string> strList = new List<string>();

        public ResultItem()
        {
            InitializeComponent();
        }

        public string SetNameLblContent
        {
            set
            {
                NameLbl.Content = value;
            }
            get
            {
                return NameLbl.Content.ToString();
            }
        }

        public string RecTxtBoxText
        {
            set
            {
                RecTxtBox.Text = value;
            }
            get
            {
                return RecTxtBox.Text;
            }
        }

        public string ObtainedTxtBoxText
        {
            set
            {
                ObtainedTxtBox.Text = value;
            }
            get
            {
                return ObtainedTxtBox.Text;
            }
        }

        public string UnitLblContent
        {
            set
            {
                UnitLbl.Content = value;
            }
            get
            {
                return UnitLbl.Content.ToString();
            }
        }

        public bool ShowHideRecomended
        {
            set
            {
                RecTxtBox.Visibility = (value) ? System.Windows.Visibility.Visible : System.Windows.Visibility.Hidden; 
            }
        }

        public bool CollapseRecomended
        {
            set
            {
                RecTxtBox.Visibility = (value) ? System.Windows.Visibility.Visible : System.Windows.Visibility.Collapsed;
            }
        }
    }
}
